package com.iv.durian.cloud.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import org.codehaus.jackson.annotate.JsonProperty;

@Data
@Builder
@ApiModel(value="用户对象")
public class AccessToken {
    /**
     * 签名
     */
    @ApiModelProperty(value="获取到的凭证")
    @JsonProperty("access_token")
    private String accessToken;

    /**
     * 有效时间
     */
    @ApiModelProperty(value="有效时间 单位秒")
    @JsonProperty("expire_in")
    private long expire;


    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public long getExpire() {
        return expire;
    }

    public void setExpire(long expire) {
        this.expire = expire;
    }
}
